package com.gangquan360.smartadmin.module.product.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.gangquan360.smartadmin.module.product.domain.dto.ProductTagQueryDTO;
import com.gangquan360.smartadmin.module.product.domain.entity.ProductTagEntity;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * [ 产品标签表 ]
 *
 * @author wiggin
 * @version 1.0
 * @company wiggin
 * @copyright (c) 2018 wigginInc. All rights reserved.
 * @date 2020-03-14 21:33:16
 * @since JDK1.8
 */
@Mapper
@Component
public interface ProductTagDao extends BaseMapper<ProductTagEntity> {

    /**
     * 分页查询
     * @param queryDTO
     * @return ProductTagEntity
    */
    List<ProductTagEntity> queryByPage(Pagination page, @Param("queryDTO") ProductTagQueryDTO queryDTO);

    /**
     * 根据id删除
     * @param id
     * @return
    */
    void deleteById(@Param("id") Long id);

    /**
     * 批量删除
     * @param idList
     * @return
    */
    void deleteByIds(@Param("idList") List<Long> idList);
}
